"use strict";
/**
 * @ Author: Yoann Meclot. MSay2
 * @ Modified on: 2020-05-27 14:39:02
 * @ Modified on: 2021-06-14 18:01:43
 */
/**
 * Copyright (c) 2020-2021 MSay2 (Yoann Meclot) - @msay2/tspoet
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Argument = void 0;
class Argument {
    static isOf(object, name) {
        return object.constructor.name == name;
    }
    static isString(object) {
        return this.isOf(object, "String");
    }
    static isBoolean(object) {
        return this.isOf(object, "Boolean");
    }
    static isNumber(object) {
        return this.isOf(object, "Number");
    }
    static isPrimitive(object) {
        return this.isString(object) || this.isBoolean(object) || this.isNumber(object);
    }
}
exports.Argument = Argument;
//# sourceMappingURL=Argument.js.map